package com.wm.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface RolePermMapper {

    @Insert("insert into rbac_role_perm values(#{roleId},#{permId})")
    void add(@Param("roleId") int roleId,@Param("permId") int permId);

    @Delete("delete from rbac_role_perm where role_id=#{roleId}")
    void delByRoleId(int roleId);
}
